<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>细节点</title>
  <script src="vue.js"></script>
</head>
<body>
<!--ref是一个引用-->

<div id="app">
      <div ref='hello'
           @click="handleClick">
           hello world
      </div>
</div>
<script>
  var vm=new Vue({
    el:"#app",
    methods:{
       handleClick:function(){
//          this.$refs.hello
         console.log(this.$refs.hello.innerHTML)
       }
    }
  })
</script>
</body>
</html>
